package com.zhuxiaomei.entity.restaurant;

import com.zhuxiaomei.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 表名：restaurant_dishes
*/
@Table(name = "restaurant_dishes")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RestaurantDish extends BaseEntity {
    /**
     * 菜品名称
     */
    @Column(name = "dish_name")
    private String dishName;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 菜品图片路径
     */
    @Column(name = "dish_image")
    private String dishImage;

    /**
     * 菜品描述,16个字符上限
     */
    private String description;

    /**
     * 1：起售，0：停售
     */
    private Byte status;

    /**
     * 类别id
     */
    @Column(name = "category_id")
    private Long categoryId;

}